.class final Lcom/ninesky/browser/dl;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field private synthetic a:Lcom/ninesky/browser/BookmarksActivity;


# direct methods
.method constructor <init>(Lcom/ninesky/browser/BookmarksActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/ninesky/browser/dl;->a:Lcom/ninesky/browser/BookmarksActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 3

    iget-object v0, p0, Lcom/ninesky/browser/dl;->a:Lcom/ninesky/browser/BookmarksActivity;

    invoke-static {v0}, Lcom/ninesky/browser/BookmarksActivity;->e(Lcom/ninesky/browser/BookmarksActivity;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, "NSBrowser.browser"

    const-string v1, "item clicked when dismissing"

    invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/ninesky/browser/dl;->a:Lcom/ninesky/browser/BookmarksActivity;

    invoke-static {v0}, Lcom/ninesky/browser/BookmarksActivity;->f(Lcom/ninesky/browser/BookmarksActivity;)Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/ninesky/browser/dl;->a:Lcom/ninesky/browser/BookmarksActivity;

    invoke-static {v0}, Lcom/ninesky/browser/BookmarksActivity;->g(Lcom/ninesky/browser/BookmarksActivity;)Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/ninesky/browser/dl;->a:Lcom/ninesky/browser/BookmarksActivity;

    invoke-static {v0, p3}, Lcom/ninesky/browser/BookmarksActivity;->e(Lcom/ninesky/browser/BookmarksActivity;I)V

    iget-object v0, p0, Lcom/ninesky/browser/dl;->a:Lcom/ninesky/browser/BookmarksActivity;

    const-string v1, "Bookmarks"

    const-string v2, "LoadUrl"

    invoke-static {v0, v1, v2}, Lcom/mobclick/android/c;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/ninesky/browser/dl;->a:Lcom/ninesky/browser/BookmarksActivity;

    invoke-static {v0}, Lcom/ninesky/browser/BookmarksActivity;->g(Lcom/ninesky/browser/BookmarksActivity;)Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/ninesky/browser/dl;->a:Lcom/ninesky/browser/BookmarksActivity;

    invoke-static {v0, p3}, Lcom/ninesky/browser/BookmarksActivity;->f(Lcom/ninesky/browser/BookmarksActivity;I)V

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/ninesky/browser/dl;->a:Lcom/ninesky/browser/BookmarksActivity;

    invoke-static {v0, p3}, Lcom/ninesky/browser/BookmarksActivity;->c(Lcom/ninesky/browser/BookmarksActivity;I)Landroid/content/Intent;

    move-result-object v0

    iget-object v1, p0, Lcom/ninesky/browser/dl;->a:Lcom/ninesky/browser/BookmarksActivity;

    invoke-static {v1, v0}, Lcom/ninesky/browser/BookmarksActivity;->a(Lcom/ninesky/browser/BookmarksActivity;Landroid/content/Intent;)V

    iget-object v0, p0, Lcom/ninesky/browser/dl;->a:Lcom/ninesky/browser/BookmarksActivity;

    invoke-virtual {v0}, Lcom/ninesky/browser/BookmarksActivity;->finish()V

    iget-object v0, p0, Lcom/ninesky/browser/dl;->a:Lcom/ninesky/browser/BookmarksActivity;

    const-string v1, "Bookmarks"

    const-string v2, "CreateShortcutIntent"

    invoke-static {v0, v1, v2}, Lcom/mobclick/android/c;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0
.end method
